<?php include template("header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<?php if(is_newbie()){?><div id="sysmsg-guide"><div class="link"><a href="/help/tour.php"></a></div><a id="sysmsg-guide-close" href="javascript:void(0);" class="close">关闭</a></div><?php }?>

<?php if($guest['close_time']){?>
<div id="sysmsg-tip" class="sysmsg-tip-deal-close"><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content"><div class="deal-close"><div class="focus">抱歉，您来晚了，<br />此嘉宾征友活动已经结束啦。</div><div id="tip-deal-subscribe-body" class="body"><form id="tip-deal-subscribe-form" method="post" action="/subscribe.php" class="validator"><table><tr><td>不想错过明天的嘉宾？立刻订阅每日最新嘉宾信息：&nbsp;</td><td><input type="text" name="email" class="f-text" value="" require="true" datatype="email" /></td><td>&nbsp;<input class="commit" type="submit" value="订阅" /></td></tr></table></form></div></div><span id="sysmsg-tip-close" class="sysmsg-tip-close">关闭</span></div><div class="sysmsg-tip-bottom"></div></div>
<?php }?>

<?php if($order){?>
<div id="sysmsg-tip" ><div class="sysmsg-tip-top"></div><div class="sysmsg-tip-content">您已经应征，但还没有付款。<a href="/order/check.php?id=<?php echo $order['id']; ?>">查看订单并付款</a><span id="sysmsg-tip-close" class="sysmsg-tip-close">关闭</span></div><div class="sysmsg-tip-bottom"></div></div><div id="deal-default"> 
<?php }?>

	<div id="deal-default">
		<?php include template("block_guest_share");?>
		<div id="content">
			<div id="deal-intro" class="cf">
                <h1><?php if($guest['close_time']==0){?><a class="deal-today-link" href="/guest.php?id=<?php echo $guest['id']; ?>">今日嘉宾：</a><?php }?><?php echo $guest['title']; ?></h1>
                <div class="side">
                    <div class="deal-buy-cover-img" id="guest_images">
					<?php if($guest['image1']||$guest['image2']||$guest['image3']){?>
						<div class="mid">
							<ul>
								<li class="first"><img src="<?php echo guest_media($guest['image']); ?>"/></li>
							<?php if($guest['image1']){?>
								<li><img src="<?php echo guest_media($guest['image1']); ?>"/></li>
							<?php }?>
							<?php if($guest['image2']){?>
								<li><img src="<?php echo guest_media($guest['image2']); ?>"/></li>
							<?php }?>
							<?php if($guest['image3']){?>
								<li><img src="<?php echo guest_media($guest['image3']); ?>"/></li>
							<?php }?>							
							</ul>
							<div id="img_list">
								<a ref="1" class="active">1</a>
							<?php $imageindex=1; ?>
							<?php if($guest['image1']){?>
								<a ref="<?php echo ++$imageindex; ?>" ><?php echo $imageindex; ?></a>
							<?php }?>
							<?php if($guest['image2']){?>
								<a ref="<?php echo ++$imageindex; ?>" ><?php echo $imageindex; ?></a>
							<?php }?>
							<?php if($guest['image3']){?>
								<a ref="<?php echo ++$imageindex; ?>" ><?php echo $imageindex; ?></a>
							<?php }?>
							</div> 
						</div>
						<?php } else { ?>
							<img src="<?php echo guest_media($guest['image']); ?>"/>
						<?php }?>
					</div>
                    <div class="digest"><br /><?php echo nl2br(strip_tags($guest['summary'])); ?>
					</div>
                </div>
				<div class="main">
                    <div class="deal-buy">
                        <div class="deal-price-tag"></div>
                        <p class="deal-price"><span><a <?php echo $guest['begin_time']<time()?'href="/guest/buy.php?id='.$guest['id'].'"':''; ?>><img src="/static/css/i/button-deal-buy.gif" /></a></span></p>
                    </div>
					
					<table class="deal-discount">
                    </table>

                    <div class="deal-box deal-timeleft deal-off" id="deal-timeleft" curtime="<?php echo $now; ?>000" diff="<?php echo $diff_time; ?>000">
						<h3>本征友结束于</h3>
						<div class="limitdate"><p class="deal-buy-ended"><?php echo date('Y-m-d', $guest['end_time']); ?><br><?php echo date('H:i:s', $guest['end_time']); ?></p></div>
					</div>
                    <div class="deal-box deal-timeleft deal-on" id="deal-timeleft" curtime="<?php echo $now; ?>000" diff="<?php echo $diff_time; ?>000">
						<h3>剩余时间</h3>
						<div class="limitdate"><ul id="counter">
						<?php if($left_day>0){?>
							<li><span><?php echo $left_day; ?></span>天</li><li><span><?php echo $left_hour; ?></span>小时</li><li><span><?php echo $left_minute; ?></span>分钟</li>
						<?php } else { ?>
							<li><span><?php echo $left_hour; ?></span>小时</li><li><span><?php echo $left_minute; ?></span>分钟</li><li><span><?php echo $left_time; ?></span>秒</li>
						<?php }?>
						</ul></div>
					</div>

					
					<div class="deal-box deal-status deal-status-open" id="deal-status">
						<p class="deal-buy-tip-top"><strong><?php echo $guest['now_number']; ?></strong> 人已应征</p>
						<p class="deal-buy-on" style="line-height:200%;">
						
						<img src="/static/css/i/deal-buy-succ.gif"/>倾心不如点击
					</div>
				</div>
                
            </div>
            <div id="deal-stuff" class="cf">
                <div class="clear box box-split">
                    <div class="box-top"></div>
                    <div class="box-content cf">
						<div class="preliminary">
							<table class="deal-pre">
								<tr>
								<td>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：<span><?php echo $guest['name']; ?><span></td>
								<td>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄：<span><?php echo $guest['age']; ?>岁</span></td>
								</tr>
								<tr>
								<td>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;高：<span><?php echo $guest['height']; ?>厘米</span></td>
								<td>体&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重：<span><?php echo $guest['weight']; ?>公斤</span></td>
								</tr>
								<tr>
								<td>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历：<span><?php echo $degrees[$guest['degree']]; ?></span></td>
								<td>星&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;座：<span><?php echo $constellations[$guest['constellation']];?></span></td>
								</tr>
								<tr>
								<td>家&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;乡：<span><?php echo $guest['hometown']; ?></span></td>
								<td>现&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;居：<span><?php echo $guest['resident']; ?></span></td>								
								</tr>
								<tr>
								<td>工作职业：<span><?php echo $guest['career']; ?></span></td>
								<td>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;薪：<span><?php echo $guest['salary']; ?>万</span></td>
								</tr>
							</table>
						</div>
                        <div class="main">
							<table class="deal-detail">
								<tr><td>
								<?php if(trim(strip_tags($guest['hobby']))){?>
									<h2 id="detail">爱好兴趣</h2>
									<div class="blk detail"><?php echo $guest['hobby']; ?></div>
								<?php }?>
								</td></tr>
								<tr><td>
								<?php if(trim(strip_tags($guest['judge']))){?>
									<h2 id="detailit">朋友们说</h2>
									<div class="blk review"><?php echo userreview($guest['judge']); ?></div>
								<?php }?>
								</td></tr>
								<tr><td>
								<?php if(trim(strip_tags($guest['detail']))){?>
									<h2 id="userreview">倾心细语</h2>
									<div class="blk review"><?php echo userreview($guest['detail']); ?></div>
								<?php }?>
								</td></tr>
							</table>
						</div>
                        <div class="clear"></div>
                    </div>
                    <div class="box-bottom"></div>
                </div>
            </div>
    </div>

    <div id="sidebar">
		<?php include template("block_side_invite");?>
		<?php include template("block_side_bulletin");?>
		<?php include template("block_side_flv");?>
		<?php include template("block_side_ask");?>
		<?php include template("block_side_others");?>
		<?php include template("block_side_business");?>
		<?php include template("block_side_subscribe");?>
	</div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<?php include template("footer");?>
